<!-- This page asks students about their residency status. They have to
     pick one of two choices: U.S. Permanent Resident or Non-U.S. Resident.
     If they are U.S. Permanent Residents, they are marked as Domestic
     Applicants. And if they are Non-U.S. Residents, they are marked as
     Non-Domestic Applicants.
     
     Upon clicking submit, they are led to the Provide Degrees -- Choose
     Location Page. -->

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Residency Page</title>
</head>
<body>

<CENTER>
<h1> Graduate School Application </h1>
<h2> Residency Page </h2>
</CENTER>


<!-- Display data collected from previous pages. -->

<b>First Name:</b> <bean:write name="studentsinfoform" property="first" />
<span style="padding-left:20px"><b>Middle Initial:</b> <bean:write name="studentsinfoform" property="middle" /></span>
<span style="padding-left:20px"><b>Last Name:</b>  <bean:write name="studentsinfoform" property="last" /> </span>
<p>
<b>Country of Citizenship:</b> <bean:write name="citizenshipform" property="citizen" /> <p>
<b>Country of Residence:</b> <bean:write name="residenceform" property="residence"/> <p>

<b>Address:</b><p>

	<logic:present name="addressform" property="street">
			<span style="padding-left:20px"><b>Street:</b> <bean:write name="addressform" property="street" /> <p></span>
	</logic:present>
	<logic:present name="addressform" property="city">
			<span style="padding-left:20px"><b>City:</b> <bean:write name="addressform" property="city" /> </span>
	</logic:present>
	<logic:present name="addressform" property="lstate">
		<logic:notEqual  name="addressform" property="lstate" value="">
			<span style="padding-left:20px"><b>State:</b> <bean:write name="addressform" property="lstate" /> </span>
		</logic:notEqual>
	</logic:present>
	<logic:present name="addressform" property="zip">
		<logic:notEqual  name="addressform" property="zip" value="">
			<span style="padding-left:20px"><b>Zip Code:</b> <bean:write name="addressform" property="zip" /> </span>
		</logic:notEqual>
	</logic:present>
	<p>
	<b>Phone Number:</b> (<bean:write name="addressform" property="areaCode" />) 
	                     (<bean:write name="addressform" property="pnumber" />) <p>

<br><b>Please specify your residency.</b> <p>

<!-- Radio buttons that allow students to choose between U.S. Permanent
     Resident and Non-U.S. Resident. -->
<div align="center">

<html:form action="/residency" >
	<html:radio name="residencyform" property="residency" value="US Permanent Resident" /> US Permanent Resident <br>
	<html:radio name="residencyform" property="residency" value="Non-Resident" /> Non-Resident <br>
	<html:submit/>
</html:form>
</div>

</body>
</html>
